<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bai 2.13</title>
</head>

<body>
<?php
	if(isset($_POST['so']))
	{
		$so=$_POST['so'];
		switch($so)
		{
			case 0:$chu="Không";break;
			case 1:$chu="Một";break;
			case 2:$chu="Hai";break;
			case 3:$chu="Ba";break;
			case 4:$chu="Tư";break;
			case 5:$chu="Năm";break;
			case 6:$chu="Sáu";break;
			case 7:$chu="Bảy";break;
			case 8:$chu="Tám";break;
			case 9:$chu="Chín";break;
			default:break;
		}
	}
?>
<form id="form1" name="form1" method="post" action="Bai2_13.php">
  <table width="350" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#000099" style="text-align: center; color: #FFF; font-weight: bold; font-style: italic; font-size: 24px;">
      <td colspan="3">ĐỌC SỐ</td>
    </tr>
    <tr style="text-align: center">
      <td bgcolor="#00CCFF">Nhập số (0-&gt;9)</td>
      <td bgcolor="#00CCFF">&nbsp;</td>
      <td bgcolor="#00CCFF">Bằng chữ:</td>
    </tr>
    <tr style="text-align: center">
      <td bgcolor="#00CCFF"><input name="so" type="text" id="so" value="<?php echo $_POST['so'];?>" size="10" /></td>
      <td bgcolor="#00CCFF"><span style="text-align: center">
        <input type="submit" name="submit" id="submit" value="=&gt;" />
      </span></td>
      <td bgcolor="#00CCFF"><input name="chu" style="background-color:#FFC; color:#F00" type="text" id="chu" value="<?php echo $chu;?>" size="20" readonly="readonly" /></td>
    </tr>
  </table>
</form>
</body>
</html>